const routes = [
  {
    path: '*',
    redirect: '/login'
  },
  {
    path: '/login',
    component: () => import(/* webpackChunkName: 'login' */ 'components/login/login')
  },
  // 第三方登录
  {
    path: '/oauth-login',
    component: () => import(/* webpackChunkName: 'oauth-login' */ 'components/login/oauth-login')
  },
  // 第三方登录退出返回页面
  {
    path: '/logout',
    component: () => import(/* webpackChunkName: 'logout' */ 'components/logout/index')
  },
  {
    path: '/chose',
    component: () => import(/* webpackChunkName: 'chose' */ 'components/home/chose')
  },
  {
    path: '/video',
    component: () => import(/* webpackChunkName: 'video' */ 'components/public/video')
  },
  {
    path: '/reportTable',
    component: () => import(/* webpackChunkName: 'reportTable' */ 'components/public/reportTable')
  },
  {
    path: '/aiPicture',
    component: () => import(/* webpackChunkName: 'aiPicture' */ 'components/a-picture/a-picture')
  },
  {
    path: '/functional-dep',
    component: () => import(/* webpackChunkName: 'funDep' */ 'components/chief/functionDep')
  },
  {
    path: '/home',
    component: () => import(/* webpackChunkName: 'home' */ 'components/home/home'),
    children: [{
      path: '/home/work',
      component: () => import(/* webpackChunkName: 'home/work' */ 'components/home/work')
    }, {
      path: '/home/work1',
      component: () => import(/* webpackChunkName: 'home/work1' */ 'components/home/work1')
    }, {
      path: '/home/data',
      redirect: '/home/data/wechat',
      component: () => import(/* webpackChunkName: 'home/data' */ 'components/data/index'),
      children: [{
        path: '/home/data/flood',
        component: () => import(/* webpackChunkName: 'data/flood' */ 'components/data/flood/flood')
      }, {
        path: '/home/data/flood2',
        component: () => import(/* webpackChunkName: 'data/flood2' */ 'components/data/flood/flood2')
      }, {
        path: '/home/data/policy',
        component: () => import(/* webpackChunkName: 'data/policy' */ 'components/data/flood/policy')
      }, {
        path: '/home/data/notice',
        component: () => import(/* webpackChunkName: 'data/notice' */ 'components/data/flood/notice')
      }, {
        path: '/home/data/river',
        component: () => import(/* webpackChunkName: 'data/river' */ 'components/data/river/river')
      }, {
        path: '/home/data/lake',
        component: () => import(/* webpackChunkName: 'data/lake' */ 'components/data/river/lake')
      }, {
        path: '/home/data/board',
        component: () => import(/* webpackChunkName: 'data/board' */ 'components/data/river/board')
      }, {
        path: '/home/data/user-count',
        component: () => import(/* webpackChunkName: 'data/user-count' */ 'components/data/count/user-count')
      }, {
        path: '/home/data/userAss-count',
        component: () => import(/* webpackChunkName: 'data/userAss-count' */ 'components/data/count/userAss-count')
      }, {
        path: '/home/data/patrol-problem-count',
        component: () => import(/* webpackChunkName: 'data/patrol-problem-count' */ 'components/data/count/patrol-problem-count')
      }, {
        path: '/home/data/patrol-count',
        component: () => import(/* webpackChunkName: 'data/patrol-count' */ 'components/data/count/patrol-count')
      }, {
        path: '/home/data/patrol-times-count',
        component: () => import(/* webpackChunkName: 'data/patrol-count' */ 'components/data/count/patrol-times-count')
      }, {
        path: '/home/data/report-count',
        component: () => import(/* webpackChunkName: 'data/report-count' */ 'components/data/count/report-count')
      }, {
        path: '/home/data/borad-count',
        component: () => import(/* webpackChunkName: 'data/borad-count' */ 'components/data/count/borad-count')
      }, {
        path: '/home/data/outfall-count',
        component: () => import(/* webpackChunkName: 'data/outfall-count' */ 'components/data/count/outfall-count')
      }, {
        path: '/home/data/assessment-count',
        component: () => import(/* webpackChunkName: 'data/assessment-count' */ 'components/data/count/assessment-count')
      }, {
        path: '/home/data/chief-log',
        component: () => import(/* webpackChunkName: 'data/chief-log' */ 'components/data/patrol/chief-log')
      }, {
        path: '/home/data/patrol',
        component: () => import(/* webpackChunkName: 'data/patrol' */ 'components/data/patrol/patrol')
      }, {
        path: '/home/data/chref-complete',
        component: () => import(/* webpackChunkName: 'data/chief-complete' */ 'components/data/patrol/chief-complete')
      }, {
        path: '/home/data/water-quality',
        component: () => import(/* webpackChunkName: 'data/water-quality' */ 'components/data/water/water-quality')
      }, {
        path: '/home/data/water-quality-city',
        component: () => import(/* webpackChunkName: 'data/water-quality' */ 'components/data/water/water-quality-city')
      }, {
        path: '/home/data/wechat',
        component: () => import(/* webpackChunkName: 'data/wechat' */ 'components/data/solve/wechat')
      }, {
        path: '/home/data/option',
        component: () => import(/* webpackChunkName: 'data/option' */ 'components/data/solve/option')
      }, {
        path: '/home/data/major-project',
        component: () => import(/* webpackChunkName: 'data/majorProject' */ 'components/data/solve/majorProject')
      }, {
        path: '/home/data/document',
        component: () => import(/* webpackChunkName: 'data/document' */ 'components/data/solve/document')
      }, {
        path: '/home/data/patrol-rule',
        component: () => import(/* webpackChunkName: 'data/patrol-rule' */ 'components/data/patrol/patrol-rule')
      }]
    }, {
      path: '/home/multiple',
      redirect: '/home/multiple/department',
      component: () => import(/* webpackChunkName: 'home/multiple' */ 'components/multiple/index'),
      children: [
        {
          path: '/home/multiple/department',
          component: () => import(/* webpackChunkName: 'multiple/department' */ 'components/multiple/system/department')
        },
        {
          path: '/home/multiple/user',
          component: () => import(/* webpackChunkName: 'multiple/user' */ 'components/multiple/system/user')
        },
        {
          path: '/home/multiple/function',
          component: () => import(/* webpackChunkName: 'multiple/function' */ 'components/multiple/system/function')
        },
        {
          path: '/home/multiple/function-user',
          component: () => import(/* webpackChunkName: 'multiple/function-user' */ 'components/multiple/system/functionUser')
        },
        {
          path: '/home/multiple/vacation',
          component: () => import(/* webpackChunkName: 'multiple/vacation' */ 'components/multiple/config/vacation')
        },
        {
          path: '/home/multiple/water-standard',
          component: () => import(/* webpackChunkName: 'multiple/water-standard' */ 'components/multiple/config/waterStandard')
        },
        {
          path: '/home/multiple/ass-stand',
          component: () => import(/* webpackChunkName: 'multiple/ass-stand' */ 'components/multiple/assessment/assStand')
        },
        {
          path: '/home/multiple/task',
          component: () => import(/* webpackChunkName: 'multiple/task' */ 'components/multiple/assessment/task')
        },
        {
          path: '/home/multiple/role',
          component: () => import(/* webpackChunkName: 'multiple/role' */ 'components/multiple/role/role')
        },
        {
          path: '/home/multiple/userlog',
          component: () => import(/* webpackChunkName: 'multiple/user-log' */ 'components/multiple/log/userLog')
        },
        {
          path: '/home/multiple/msg-log',
          component: () => import(/* webpackChunkName: 'multiple/msg-log' */ 'components/multiple/log/msgLog')
        },
        {
          path: '/home/multiple/plan',
          component: () => import(/* webpackChunkName: 'multiple/plan' */ 'components/multiple/more/plan')
        },
        {
          path: '/home/multiple/notice-manage',
          component: () => import(/* webpackChunkName: 'multiple/notice-manage' */ 'components/multiple/more/noticeManage')
        },
        {
          path: '/home/multiple/gate-pump',
          component: () => import(/* webpackChunkName: 'multiple/gate-pump' */ 'components/multiple/more/gatePump')
        },
        {
          path: '/home/multiple/outfall',
          component: () => import(/* webpackChunkName: 'multiple/outfall' */ 'components/multiple/more/outfall')
        },
        {
          path: '/home/multiple/system',
          component: () => import(/* webpackChunkName: 'multiple/system' */ 'components/multiple/aboutUs/system')
        },
        {
          path: '/home/multiple/data',
          component: () => import(/* webpackChunkName: 'multiple/data' */ 'components/multiple/aboutUs/data')
        },
        {
          path: '/home/multiple/rubbish',
          component: () => import(/* webpackChunkName: 'multiple/rubbish' */ 'components/multiple/more/rubbish')
        }
      ]
    }, {
      path: '/home/chief-wechat',
      component: () => import(/* webpackChunkName: 'home/chief-wechat' */ 'components/chief/chiefWechat')
    }, {
      path: '/home/chief-patrol',
      component: () => import(/* webpackChunkName: 'home/chief-patrol' */ 'components/chief/chiefPatrol')
    }, {
      path: '/home/chief-major',
      component: () => import(/* webpackChunkName: 'home/chief-major' */ 'components/data/solve/majorProject')
    }, {
      path: '/home/chref-notice',
      component: () => import(/* webpackChunkName: 'home/chref-notice' */'components/chief/chiefNotice')
    }, {
      path: '/home/provinceRiver',
      component: () => import(/* webpackChunkName: 'home/chref-notice' */'components/public/provinceRiver')
    }]
  }
]

export default routes
